How to update element of nested list from forloop - Python

welcome to shbcf.ru